import numpy as np

arr = np.random.randint(1, 10, size=(3, 4))
print('3*4的元数组: \n', arr)
print('转置后4*3的数组: \n', arr.T)
print('变形后2*6的数组: \n', arr.reshape(2, 6))
